package pub.guoxin.oops.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.querydsl.core.annotations.QueryEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
import pub.guoxin.oops.tidy.LocalDateTimeDeserializer;
import pub.guoxin.oops.tidy.LocalDateTimeSerializer;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 公司
 *
 * Created by guoxin on 17-8-12.
 */

@Data
@Entity
@QueryEntity
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SeqGenerator implements Serializable {

    private static final long serialVersionUID = 5648179748937829952L;

    @Id
    private String id;

    private Long seq;

}
